package com.tzbank.wisdom.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tzbank.entity.TradeLog;
import com.tzbank.wisdom.dao.TradeLogMapper;
import com.tzbank.wisdom.service.TradeLogService;

@Service(value = "tradeLogService")
public class TradeLogServiceImpl implements TradeLogService{
	
	@Autowired
    private TradeLogMapper tradeLogMapper;

	/**
     * 添加交易日志
     */
    public int addTradeLog(Map<String,String> reqBody) {
    	TradeLog tradeLog = new TradeLog();
    	return add(tradeLog);
    }
    
    /**
     * 添加交易日志
     */
    public int add(TradeLog tradeLog) {
    	return tradeLogMapper.add(tradeLog);
    }

}
